function WFusion=FusionW2D(EstimatedW,Treshold,WIndex)
WFusion=...
     (EstimatedW(:,1)> Treshold(1)).*(EstimatedW(:,2)> Treshold(2)).*EstimatedW(:,WIndex(1))...
    +(EstimatedW(:,1)> Treshold(1)).*(EstimatedW(:,2)<=Treshold(2)).*EstimatedW(:,WIndex(2))...
    +(EstimatedW(:,1)<=Treshold(1)).*(EstimatedW(:,2)> Treshold(2)).*EstimatedW(:,WIndex(3))...
    +(EstimatedW(:,1)<=Treshold(1)).*(EstimatedW(:,2)<=Treshold(2)).*EstimatedW(:,WIndex(4));
